<script language="javascript">
function doSearchPost(){
	var url="<{$website}>/<{$spre}>.php?";
	var sp=document.getElementById("sp").value;
	var ep=document.getElementById("ep").value;
	var sort=document.getElementById("sort").value;
	var area=document.getElementById("area").value;
	var q=document.getElementById("sq").value;
	var liebiao=document.getElementById("liebiao").value;
	var cid=document.getElementById("cid").value;
	window.location=url+"sp="+sp+"&ep="+ep+"&sort="+sort+"&area="+area+"&q="+q+"&liebiao="+liebiao+"&cid="+cid;
}
</script>
<DIV id="searchbar clearfix">
<table width="100%" height="34" border="0" cellpadding="0" cellspacing="0" bordercolor="#66FFCC">
  <tr>
    <td width="6" height="34" background="<{$website}>/templates/<{$moban}>/style/barleft.gif"></td>
    <td width="49" height="34" align="center" background="<{$website}>/templates/<{$moban}>/style/barback.gif">
    <a title='小图片模式' href='<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-<{$sort}><{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q|urlencode}><{$ljoin}>liebiao-0<{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>'><img src='<{$website}>/templates/<{$moban}>/style/liebiaoxiao0.gif' alt='小图片模式' width='16' height='16' /></a>&nbsp;&nbsp;<a title='大图片模式' href="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-<{$sort}><{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q|urlencode}><{$ljoin}>liebiao-1<{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>"><img src='<{$website}>/templates/<{$moban}>/style/liebiaoda1.gif' alt='大图片模式' width='16' height='16' /></a>
    </td>  
    <td width="84" align="right" background="<{$website}>/templates/<{$moban}>/style/barback.gif">排列顺序：</td>
    <td width="130" background="<{$website}>/templates/<{$moban}>/style/barback.gif">
	<select name="select"  onchange="MM_jumpMenu( 'self',this,0)" style="width:130px">
       <option <{if $sort=='commissionVolume_desc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-commissionVolume_desc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >人气从高→低</option>
       <option <{if $sort=='commissionNum_desc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-commissionNum_desc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >销量从高→低</option>
       <option <{if $sort=='credit_desc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-credit_desc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >信用从高→低</option>
       <option <{if $sort=='price_desc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-price_desc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >价格从高→低</option>
       <option <{if $sort=='price_asc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-price_asc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >价格从低→高</option>
       <option <{if $sort=='delistTime_desc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-delistTime_desc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >下架时间从高→低</option>
       <option <{if $sort=='delistTime_asc'}>selected<{/if}> value="<{$website}>/<{$spre}><{$ljoin}>cid-<{$cid}><{$ljoin}>sp-<{$sp}><{$ljoin}>ep-<{$ep}><{$ljoin}>sort-delistTime_asc<{$ljoin}>area-<{$area}><{$ljoin}>q-<{$q}><{$ljoin}>liebiao-<{$liebiao}><{$ljoin}><{$lpage}><{$page}><{$rewrite_postfix}>" >下架时间从低→高</option>
    </select>
	</td>
      <td width="80" align="right" background="<{$website}>/templates/<{$moban}>/style/barback.gif">&nbsp;&nbsp;价格区间： </td>
		<td width="120" background="<{$website}>/templates/<{$moban}>/style/barback.gif">
			<input name="sp" type="text" id="sp" value="<{$sp}>" size="4" maxlength="6" style="width:40px;"/>
			-
			<input name="ep" type="text"  id="ep" value="<{$ep}>" size="4" maxlength="6" style="width:40px;"/>
			<input type="hidden" name="sort" id="sort" value="<{$sort}>" />
		</td>
      <td width="54" align="right" background="<{$website}>/templates/<{$moban}>/style/barback.gif">所在地：</td>
      <td width="82" align="left" background="<{$website}>/templates/<{$moban}>/style/barback.gif">
	  <select name="area" id="area">
        <option value="" selected> 所有地区</option>
        <option value='江苏,浙江,上海' <{if $area=='江苏,浙江,上海'}>selected<{/if}>>江浙沪</option>
        <option value='广州,深圳,中山,珠海,佛山,东莞,惠州' <{if $area=='广州,深圳,中山,珠海,佛山,东莞,惠州'}>selected<{/if}>>珠三角</option>
        <option value='香港,澳门,台湾' <{if $area=='香港,澳门,台湾'}>selected<{/if}>>港澳台</option>
        <option value='美国,英国,法国,瑞士,澳洲,新西兰,加拿大,奥地利,韩国,日本,德国,意大利,西班牙,俄罗斯,泰国,印度,荷兰,新加坡,其它国家' <{if $area=='美国,英国,法国,瑞士,澳洲,新西兰,加拿大,奥地利,韩国,日本,德国,意大利,西班牙,俄罗斯,泰国,印度,荷兰,新加坡,其它国家'}>selected<{/if}>>海外</option>
        <option value='北京'<{if $area == "北京" }> selected <{/if}>>北京</option>
        <option value='上海'<{if $area == "上海" }> selected <{/if}>>上海</option>
        <option value='杭州'<{if $area == "杭州" }> selected <{/if}>>杭州</option>
        <option value='广州'<{if $area == "广州" }> selected <{/if}>>广州</option>
        <option value='深圳'<{if $area == "深圳" }> selected <{/if}>>深圳</option>
        <option value='南京'<{if $area == "南京" }> selected <{/if}>>南京</option>
        <option value='武汉'<{if $area == "武汉" }> selected <{/if}>>武汉</option>
        <option value='天津'<{if $area == "天津" }> selected <{/if}>>天津</option>
        <option value='成都'<{if $area == "成都" }> selected <{/if}>>成都</option>
        <option value='哈尔滨'<{if $area == "哈尔滨" }> selected <{/if}>>哈尔滨</option>
        <option value='重庆'<{if $area == "重庆" }> selected <{/if}>>重庆</option>
        <option value='宁波'<{if $area == "宁波" }> selected <{/if}>>宁波</option>
        <option value='无锡'<{if $area == "无锡" }> selected <{/if}>>无锡</option>
        <option value='济南'<{if $area == "济南" }> selected <{/if}>>济南</option>
        <option value='苏州'<{if $area == "苏州" }> selected <{/if}>>苏州</option>
        <option value='温州'<{if $area == "温州" }> selected <{/if}>>温州</option>
        <option value='青岛'<{if $area == "青岛" }> selected <{/if}>>青岛</option>
        <option value='沈阳'<{if $area == "沈阳" }> selected <{/if}>>沈阳</option>
        <option value='福州'<{if $area == "福州" }> selected <{/if}>>福州</option>
        <option value='西安'<{if $area == "西安" }> selected <{/if}>>西安</option>
        <option value='长沙'<{if $area == "长沙" }> selected <{/if}>>长沙</option>
        <option value='合肥'<{if $area == "合肥" }> selected <{/if}>>合肥</option>
        <option value='南宁'<{if $area == "南宁" }> selected <{/if}>>南宁</option>
        <option value='南昌'<{if $area == "南昌" }> selected <{/if}>>南昌</option>
        <option value='郑州'<{if $area == "郑州" }> selected <{/if}>>郑州</option>
        <option value='厦门'<{if $area == "厦门" }> selected <{/if}>>厦门</option>
        <option value='大连'<{if $area == "大连" }> selected <{/if}>>大连</option>
        <option value='常州'<{if $area == "常州" }> selected <{/if}>>常州</option>
        <option value='石家庄'<{if $area == "石家庄" }> selected <{/if}>>石家庄</option>
        <option value='东莞'<{if $area == "东莞" }> selected <{/if}>>东莞</option>
        <option value='安徽'<{if $area == "安徽" }> selected <{/if}>>安徽</option>
        <option value='福建'<{if $area == "福建" }> selected <{/if}>>福建</option>
        <option value='甘肃'<{if $area == "甘肃" }> selected <{/if}>>甘肃</option>
        <option value='广东'<{if $area == "广东" }> selected <{/if}>>广东</option>
        <option value='广西'<{if $area == "广西" }> selected <{/if}>>广西</option>
        <option value='贵州'<{if $area == "贵州" }> selected <{/if}>>贵州</option>
        <option value='海南'<{if $area == "海南" }> selected <{/if}>>海南</option>
        <option value='河北'<{if $area == "河北" }> selected <{/if}>>河北</option>
        <option value='黑龙江'<{if $area == "黑龙江" }> selected <{/if}>>黑龙江</option>
        <option value='河南'<{if $area == "河南" }> selected <{/if}>>河南</option>
        <option value='湖北'<{if $area == "湖北" }> selected <{/if}>>湖北</option>
        <option value='湖南'<{if $area == "湖南" }> selected <{/if}>>湖南</option>
        <option value='江苏'<{if $area == "江苏" }> selected <{/if}>>江苏</option>
        <option value='江西'<{if $area == "江西" }> selected <{/if}>>江西</option>
        <option value='吉林'<{if $area == "吉林" }> selected <{/if}>>吉林</option>
        <option value='辽宁'<{if $area == "辽宁" }> selected <{/if}>>辽宁</option>
        <option value='内蒙古'<{if $area == "内蒙古" }> selected <{/if}>>内蒙古</option>
        <option value='宁夏'<{if $area == "宁夏" }> selected <{/if}>>宁夏</option>
        <option value='青海'<{if $area == "青海" }> selected <{/if}>>青海</option>
        <option value='山东'<{if $area == "山东" }> selected <{/if}>>山东</option>
        <option value='山西'<{if $area == "山西" }> selected <{/if}>>山西</option>
        <option value='陕西'<{if $area == "陕西" }> selected <{/if}>>陕西</option>
        <option value='四川'<{if $area == "四川" }> selected <{/if}>>四川</option>
        <option value='新疆'<{if $area == "新疆" }> selected <{/if}>>新疆</option>
        <option value='西藏'<{if $area == "西藏" }> selected <{/if}>>西藏</option>
        <option value='云南'<{if $area == "云南" }> selected <{/if}>>云南</option>
        <option value='浙江'<{if $area == "浙江" }> selected <{/if}>>浙江</option>
        <option value='other'<{if $area == "other" }> selected <{/if}>>其它</option>
      </select>
			<input type="hidden" name="sq" id="sq" value="<{$q}>" />
			<input type="hidden" name="liebiao" id="liebiao" value="<{$liebiao}>" />
	  </td>
	   <{if $showcid == 1}>
      <td width="54" align="right" background="<{$website}>/templates/<{$moban}>/style/barback.gif">类别： </td>
	  <td  background="<{$website}>/templates/<{$moban}>/style/barback.gif">
	<SELECT id="cid" name="cid" style="MARGIN-TOP: 1px; WIDTH: 200px"> 
	<OPTION value=0 selected>所有分类</OPTION> <OPTION 
  <option value="1512" <{if $cid==1512}>selected<{/if}> style="background-color:#ebefff">&nbsp;品牌手机</option>
  <option value="50019321" <{if $cid==50019321}>selected<{/if}> style="background-color:#ebefff">&nbsp;国货精品手机</option>
  <option value="50018367" <{if $cid==50018367}>selected<{/if}> style="background-color:#ebefff">&nbsp;手机配件</option>
  <option value="11" <{if $cid==11}>selected<{/if}> style="background-color:#ebefff">&nbsp;电脑硬件、台式整机、网络设备</option>
  <option value="1101" <{if $cid==1101}>selected<{/if}> style="background-color:#ebefff">&nbsp;笔记本电脑</option>
  <option value="50018377" <{if $cid==50018377}>selected<{/if}> style="background-color:#ebefff">&nbsp;笔记本配件</option>
  <option value="14" <{if $cid==14}>selected<{/if}> style="background-color:#ebefff">&nbsp;数码相机、摄像机、图形冲印</option>
  <option value="1201" <{if $cid==1201}>selected<{/if}> style="background-color:#ebefff">&nbsp;MP3、MP4、iPod、录音笔</option>
  <option value="50008090" <{if $cid==50008090}>selected<{/if}> style="background-color:#ebefff">&nbsp;3C数码配件市场</option>
  <option value="50007218" <{if $cid==50007218}>selected<{/if}> style="background-color:#ebefff">&nbsp;办公设备、办公用品及耗材</option>
  <option value="50018627" <{if $cid==50018627}>selected<{/if}> style="background-color:#ebefff">&nbsp;电子辞典、学习机、文具</option>
  <option value="50018908" <{if $cid==50018908}>selected<{/if}> style="background-color:#ebefff">&nbsp;影音电器</option>
  <option value="50017285" <{if $cid==50017285}>selected<{/if}> style="background-color:#ebefff">&nbsp;国货精品视听</option>
  <option value="50018957" <{if $cid==50018957}>selected<{/if}> style="background-color:#ebefff">&nbsp;生活电器</option>
  <option value="50018930" <{if $cid==50018930}>selected<{/if}> style="background-color:#ebefff">&nbsp;厨房电器</option>
  <option value="50032886" <{if $cid==50032886}>selected<{/if}> style="background-color:#ebefff">&nbsp;网店、网络服务、定制、软件</option>
  <option value="50019393" <{if $cid==50019393}>selected<{/if}> style="background-color:#ebefff">&nbsp;闪存卡、U盘、移动存储</option>
  <option value="50010788" <{if $cid==50010788}>selected<{/if}>>&nbsp;彩妆、香水、美发工具</option>
  <option value="1801" <{if $cid==1801}>selected<{/if}>>&nbsp;美容护肤、美体、精油 </option>
  <option value="50015926" <{if $cid==50015926}>selected<{/if}>>&nbsp;珠宝、钻石、翡翠、黄金</option>
  <option value="50005700" <{if $cid==50005700}>selected<{/if}>>&nbsp;品牌手表、流行手表</option>
  <option value="1705" <{if $cid==1705}>selected<{/if}>>&nbsp;饰品、流行首饰、时尚饰品</option>
  <option value="16" <{if $cid==16}>selected<{/if}>>&nbsp;女装、女士精品</option>
  <option value="50006843" <{if $cid==50006843}>selected<{/if}>>&nbsp;女鞋</option>
  <option value="50006842" <{if $cid==50006842}>selected<{/if}>>&nbsp;箱包、单肩包、手提包、旅行箱</option>
  <option value="1625" <{if $cid==1625}>selected<{/if}>>&nbsp;女士内衣、男士内衣、家居服</option>
  <option value="50016853" <{if $cid==50016853}>selected<{/if}>>&nbsp;男鞋、皮鞋、休闲鞋</option>
  <option value="30" <{if $cid==30}>selected<{/if}>>&nbsp;男装</option>
  <option value="50010404" <{if $cid==50010404}>selected<{/if}>>&nbsp;皮带、围巾、领带、帽子手套</option>
  <option value="50010728" <{if $cid==50010728}>selected<{/if}>>&nbsp;运动、瑜伽、健身、球迷用品</option>
  <option value="50016756" <{if $cid==50016756}>selected<{/if}>>&nbsp;运动服、运动包、颈环配件</option>
  <option value="50010388" <{if $cid==50010388}>selected<{/if}>>&nbsp;运动鞋</option>
  <option value="2203" <{if $cid==2203}>selected<{/if}>>&nbsp;户外、登山、野营、涉水</option>
  <option value="50018963" <{if $cid==50018963}>selected<{/if}>>&nbsp;旅游度假、打折机票、特惠酒店</option>
  <option value="50008165" <{if $cid==50008165}>selected<{/if}>>&nbsp;童装、童鞋、婴儿服、孕妇装</option>
  <option value="35" <{if $cid==35}>selected<{/if}>>&nbsp;奶粉、辅食、营养品</option>
  <option value="50005998" <{if $cid==50005998}>selected<{/if}>>&nbsp;益智玩具、早教、童车床、出行</option>
  <option value="50006004" <{if $cid==50006004}>selected<{/if}>>&nbsp;尿片、洗护、喂哺等用品</option>
  <option value="21" <{if $cid==21}>selected<{/if}> style="background-color:#ebefff">&nbsp;居家日用、厨房餐饮、洗浴</option>
  <option value="2128" <{if $cid==2128}>selected<{/if}> style="background-color:#ebefff">&nbsp;时尚家饰、工艺品、十字绣</option>
  <option value="50019142" <{if $cid==50019142}>selected<{/if}> style="background-color:#ebefff">&nbsp;个人护理保健</option>
  <option value="50008164" <{if $cid==50008164}>selected<{/if}> style="background-color:#ebefff">&nbsp;家具、家具定制、宜家代购</option>
  <option value="50008163" <{if $cid==50008163}>selected<{/if}> style="background-color:#ebefff">&nbsp;家纺 床上用品 地毯 布艺</option>
  <option value="27" <{if $cid==27}>selected<{/if}> style="background-color:#ebefff">&nbsp;装潢、灯具、五金、安防、卫浴</option>
  <option value="50008825" <{if $cid==50008825}>selected<{/if}>>&nbsp;保健食品</option>
  <option value="50002766" <{if $cid==50002766}>selected<{/if}>>&nbsp;食品、茶叶、零食、特产</option>
  <option value="23" <{if $cid==23}>selected<{/if}>>&nbsp;古董、邮币、字画、收藏</option>
  <option value="26" <{if $cid==26}>selected<{/if}>>&nbsp;汽车、配件、摩托、自行车</option>
  <option value="29" <{if $cid==29}>selected<{/if}>>&nbsp;宠物、宠物食品及用品</option>
  <option value="28" <{if $cid==28}>selected<{/if}>>&nbsp;ZIPPO、瑞士军刀、眼镜</option>
  <option value="33" <{if $cid==33}>selected<{/if}>>&nbsp;书籍、杂志、报纸</option>
  <option value="34" <{if $cid==34}>selected<{/if}>>&nbsp;音乐、影视、明星、乐器</option>
  <option value="20" <{if $cid==20}>selected<{/if}>>&nbsp;电玩、配件、游戏、攻略</option>
  <option value="25" <{if $cid==25}>selected<{/if}>>&nbsp;模型、娃娃、毛绒、KITTY</option>
  <option value="50008075" <{if $cid==50008075}>selected<{/if}>>&nbsp;演出、旅游、折扣券</option>
  <option value="50007216" <{if $cid==50007216}>selected<{/if}>>&nbsp;鲜花速递、蛋糕配送、园艺花艺</option>
	</SELECT>
	  </td>
	<{else}><input type="hidden" name="cid" id="cid" value="<{$cid}>" /><{/if}>
      <td width="99" align="center" background="<{$website}>/templates/<{$moban}>/style/barback.gif">
        <input type="image" name="imageField" src="<{$website}>/templates/<{$moban}>/style/list_nav_ok.gif" onclick="doSearchPost();"/>
	  </td>
      <td width="10" align="right" background="<{$website}>/templates/<{$moban}>/style/barright.gif">&nbsp;</td>
  </tr>
</table>
</DIV>            
